<template>
  <div>
    <button @click="add">count++</button>
    <h1>List组件</h1>
    <p>{{ m }}</p>
  </div>
</template>

<script>
export default {
  props: {
    m: Number,
  },
  methods: {
    add() {
      this.$emit("add");
    },
  },
};
</script>

<style scoped></style>
